

import 'package:flutter/material.dart';
import 'package:flutter_woo_2025/common/index.dart';
import 'package:flutter_woo_2025/common/services/wp_http.dart';
import 'package:get/get.dart';

class Global {
  static Future<void> init() async {
    // await Firebase.initializeApp();
    
    //插件初始化
    WidgetsFlutterBinding.ensureInitialized();

    //工具类
    await Storage().init();

    //初始化服务
    Get.put<ConfigService>(ConfigService());
    Get.put<WPHttpService>(WPHttpService());

    //初始化配置
    await ConfigService.to.init();

    //初始化队列
    // await Future.wait([
    //   Get.putAsync<ConfigService>(() async => await ConfigService().init()),
    // ]);
  }
}